package com.pc_project.domain.VO;

import java.util.Date;

public enum ResultStatus {
    /***/
    UNAUTHORIZED("认证失败", 401,new Date()),
    FORBIDDEN("没有相关权限", 403,new Date()),
    API_UN_IMPL("功能尚未实现", 9997,new Date()),
    SERVER_BUSY("服务器繁忙", 9998,new Date()),
    FAIL("操作失败", 9999,new Date()),
    SUCCESS("操作成功"),
    CODE_ERROR("验证码错误",10001,new Date())
    ;

    private String message;
    private int code;
    private Date lastUpdate;

    ResultStatus(String message, int code, Date lastUpdate) {
        this.message = message;
        this.code = code;
        this.lastUpdate = lastUpdate;

    }

    ResultStatus(String message) {
        this(message, 10000,new Date());
    }

    public String getMessage() {
        return message;
    }

    public int getCode() {
        return code;
    }

    public Date getLastUpdate() {
        return lastUpdate;
    }
}